import type {RouteRecordRaw} from "vue-router";
// @ts-ignore
import NoAuthView from "@/views/exception/403.vue";
// @ts-ignore
import NoFoundView from "@/views/exception/404.vue";
// @ts-ignore
import ErrorView from "@/views/exception/500.vue";
// @ts-ignore
import Index from "@/views/index.vue";

export const routes: Array<RouteRecordRaw> = [
    {
        path: "/",
        name: "首页",
        component: Index,
    },
    {
        path: "/403",
        name: "无权限",
        component: NoAuthView,
    },
    {
        path: "/404",
        name: "找不到页面",
        component: NoFoundView,
    },
    {
        path: "/500",
        name: "错误页面",
        component: ErrorView,
    },
];
